]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-entry: Support a different color for selected text
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 2 Mar 2011 21:18:42 +0000 (16:18 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 12 Jul 2011 19:30:59 +0000 (15:30 -0400)
This should improve readability in text entries where the text
color is very close to the color of the selection.

https://bugzilla.gnome.org/show_bug.cgi?id=643768

src/st/st-entry.c

index d70475d9d8d6f20ea8e377132c1dcc9f9c9ba7fd..d967824586ce13beeb354ef268e57f956c2066e6 100644 (file)
@@ -209,6 +209,9 @@ st_entry_style_changed (StWidget *self)
   if (st_theme_node_lookup_color (theme_node, "selection-background-color", FALSE, &color))
     clutter_text_set_selection_color (CLUTTER_TEXT (priv->entry), &color);
 
+  if (st_theme_node_lookup_color (theme_node, "selected-color", FALSE, &color))
+    clutter_text_set_selected_text_color (CLUTTER_TEXT (priv->entry), &color);
+
   font = st_theme_node_get_font (theme_node);
   font_string = pango_font_description_to_string (font);
   clutter_text_set_font_name (CLUTTER_TEXT (priv->entry), font_string);